#include "AnalyseString.h"

bool Logic(int id)
{
	if (id < 100)
	{
		return true;
	}
	else
	{
		return false;
	}
}

int main()
{
	std::string str = "~66|((99|123)&(456|789))";
	//std::string str = "~666&~999";
	boolstring::NodeList list, post;
	boolstring::SpliteExpr(str, list);
	boolstring::ConvertToPostList(list, post);
	auto b = boolstring::ExecList(post, std::bind(Logic, std::placeholders::_1));
	return 0;
}